﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
namespace ZhaoPin.Account
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            RegisterHyperLink.NavigateUrl = "Register.aspx?ReturnUrl=" + HttpUtility.UrlEncode(Request.QueryString["ReturnUrl"]);
        }

        protected void LoginUser_LoggedIn(object sender, EventArgs e)
        {
            
        }

        protected void LoginUser_LoggingIn(object sender, LoginCancelEventArgs e)
        {
            TextBox tbUserName = LoginUser.FindControl("UserName") as TextBox;
            if (tbUserName.Text.Equals("15953224681"))
            {
                ClientScript.RegisterStartupScript(this.GetType(), "smart", @"alert('恭喜你发现这个彩蛋，看来我们有缘，联系我会有特别奖励:-)');", true);
            }
        }
    }
}
